Get a directory according to the relative path to package root.
Directory directory(List<String> paths) => Directory(joinAll([root.path, ...paths]));