correctly test for existing source files