fix deletion of output directory in makefile