bash: call autojump -a only if CWD changed

With this patch the 'autojump -a' command is only called if the CWD changed in bash.

Now hold the 'enter' key at a bash prompt, and see that the console doesn't lag anymore.