add support for relative `root dir`
Merge pull request #1 from coderhaoxin/add-support-for-relative-root-dir

add support for relative `root dir`