Cleanup on exit, and tolerate build directories already existing