fixed var reference to buildDir