Make PROMPT_COMMAND OS-proof

Defining it completely avoids errors that could be caused on multiple
OSes, like double semicolons.