Make the ImportError checks less strict