Fix %~ to resolve properly in your prompt.