Fallback in import customstyles if listDirectory is None.