Moved directory making to cmake, instead of in each file.