Fixed deletion of temporary directories for remote builds for Mac OS X