Fixed issue with creating directories during build.