Fixed regression where files were not being imported due to incorrect if condition.