Minor update to the compiler check for valid source files to save some computations