Fixed makefile to create build directories