Correct creation of build diretcory during build process