build: fix pkg-config detection when inside of a nix-shell