Remove the root when getting the digest

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>