bugfix and minor BC break: getRootPath() now returns root-path WITHOUT trailing slash (as it should have)
tweaks