updating PROMPT_COMMAND for directory and branch