add --root-dir option so discovery does not go up all the way to '/'