make the scripts for packages compatible with older versions of perl