prompt: Set PROMPT_COMMAND

Use PROMPT_COMMAND to set the cwd. This works for both login and non-login
shells (at least under F17 and should also work for any other distro that
sources /etc/profile.d/*.sh both ways).