Validate if source files exist; simplified main function