improve portability by using /usr/bin/env to resolve the perl binary

Not all distributions install Perl under /usr/bin/perl.
The locaton of /usr/bin/env is much more common.
Using /usr/bin/env is therefore a common practice to improve portability.