check_files: fix embedded perl bug reported in issue 32 of github