Added detection for apps on OSX