Sets executable permission on perl scripts
Changes shebang to '/usr/bin/env perl'. More portable
Merge pull request #24 from pal-thomassen/osx

Better OSX support