updated the build file to first init the build dir