Look for factory in a given or default folder assuming the factory has the same name as filename.