FileDir::getApplicationDir() implementation for OSX