mpstat.pl: code refactoring for the main() function.