Avoid overwriting Apple Terminal's new-tab functionality.

Apple Terminal has a feature that opens new tabs in the same working
directory as the current tab; it turns out that this works by way of
the PROMPT_COMMAND, so now we acocunt for its approach when setting up
this new, fancier PROMPT_COMMAND.