Make shebang portable
Add a system test

Previously, the tests did not cover command-line usage.
Merge pull request #5 from myint/portable

Portability and testing