changed perl config to handle m5nr version