Absolutely resolve passed root directory

`filepath.replace(this.root, '')` fails if `this.root` is relative. Fixed by resolving the passed `root` directory to an absolute path.