Set root and build directory.