clear PROMPT_COMMAND before setup

This fixes the issue #946