Replaced /usr/bin/perl with /usr/bin/env perl.
Replaced perl's -w with  to make /usr/bin/env perl work with Ubuntu.
Merge pull request #254 from policecar/shebang-fix

Replaced /usr/bin/perl with /usr/bin/env perl for compatibility with macports and friends.