opts.root was never applied before
Merge pull request #1 from donaldpipowitch/fix-root

opts.root was never applied before