Fixed issues with prompt not being expanded for tildas.