Allow root path to be overriden.

[Closes #1]