fixed build.dir variable