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

`make test` fails on Mac OS X if Perl 5.14 was installed via MacPorts and is therefore not found in /usr/bin/perl. The more generic `#!/usr/bin/env perl` fixes this issue.