filtering files starting with an underscore, as well as treat them as imports, get rid of isThemeDefinition for a more generic approach