Created by: nolanl
This change makes the PROMPT_COMMAND call out to python to update the database only if the current directory is not the HOME directory. The HOME directory is filtered out in the python code anyway, so there seems little point in spinning up a python interpreter to do nothing.