glroot and log paths adjust according to ./configure --prefix path

Signed-off-by: nixnodes <code@eth.si>