[xbuild] RemoveDir - remove only if the dir exists.