Variable root dir

Fixes some issues when installing this wiki somewhere else than the root directory of a server.