Improve robustness of make.pl to some broken permissions and some broken input files.