updated Makefile to create output dirs first