make plx set $BASENAME for main.pl as well