Changed alternate path for mac profiles file, added check if profiles file exists before passing profilesDir to findRESFile.