Remove subshells & simplify code to work with bash & zsh
Merge pull request #4 from jsks/master

Remove subshells & simplify code to work with bash & zsh