updated cwd to app_cwd

support for mac .app bundles