Lock files now start with a dot
Added additional check to see if ::ALLOWED_RESOURCES_PROFILE_FILTER is defined