Fix inverted parameters in makePathRelative method