Be more robust with PROMPT_COMMAND