be safer / more explicit
add shebang
be safer
DRY; don't chdir in parent shell
Merge pull request #5 from mk270/shell-idiom

be slightly more idiomatic / less repetitive