Modified way of retrieving the application folder (old method could fail
on new OSX).