handle `--root` option correctly

* otherwise get_datafiles() will take each char in the `options.root` as a single directory
* fixes #37