added locateFile utility method