properly set & use the build directory