Fixed makefile to create needed directories.