Implemented pathForFile() to search for files