Adaptations to run as root

Signed-off-by: Gianpaolo Macario <gmacario@gmail.com>