Fix root-path parsing.