fix re-creation of output directory in makefile