Allow Scanner to accept a root directory.