Set working directory for OS X

Properly setting the working directory for OS X similar to how NME handles it. Not sure if this should go in SDLApplication or somewhere else.