get app path function for OSX