bash: Fix regression involving empty PROMPT_COMMAND
Workaround bug in dash where tilde expansion is not applied to export X=~