Fix to the OSX build system
As discussed off-list, subsequent builds on the Mac currently fail if a toplevel make has already been run. This MR makes sure that the existing build directory is purged at the beginning of the darwin_app_wrapper target so that the app build goes through alright without running into any write errors.