regex tweak for perl script to support #!perl
update makefile.pl