handle `--root` option correctly

otherwise get_datafiles() is taking every char in `options.root` as a directory