made relpaths starting with / resolve against root