Windows fix

These changes allow autojump to work on Windows (believe it or not), running under Git Bash and installing with `./install.sh --bash --local`.