Slight changes to file existence checker code