Fixed locate detector - not using regex for filename matching.