Fix perlcritic issues in act.pl