Moved the check for source files being in the source path to the compile tool (#1259)