run xbuild in correct directory