Fix generation of perl/perl.mak