Using "$()" method on pre-prompt hook is just asking for security trouble. 
Removed