readd rootpath
Merge pull request #332 from daeks/331

Bugfix: readd rootpath