Updated to handle local files with file ext ".local"