fix paths to be root-relative