only call load_source if path is a file