check for build dir