Simplified string checking for imports in webroot access test.