change non-function returns to exit for posix shell compliance
Merge pull request #2 from alerque/master

change non-function returns to exit for posix shell compliance

fix contributed by alerque on github