fixed entire build directory cleaned when using ctrl-c