Makefile: create directories and clean up correctly