Fix Makefile to build properly with -j

A directory was not created. I changed the way that directories are created to the usual way. I think it is a bit simpler this way.