Fix checking for missing files.