Zsh prompt security and other fixes

Escape percent in zsh prompt
Prevent some security issues (directory named `$(echo abc)` appeared as `abc`) 
    (`"$()"` → `'$()'`)
Removed exports