Created by: vaijab
This fixes (#303 (closed)) 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.