bash: fixes slow prompt and not add dir upon return key

This fixes (#303) slow prompt issue, because every time one hits return
key, autojump_add_to_database python code is executed, which is very
noticeably slow.

Also autojump should not add current directory to a database if it has
not changed since last time return key was pressed, so this fixes that
as well.