use /usr/bin/env perl for shebang

This supports users with Perl installed in /usr/local/bin, perlbrew installations, etc. without having to manually invoke perl with the path to the script or edit the script.