Make build directory when required