Fix autojump script to support Nix installations