[compat] Remove os.path.relpath compatibility (related to #264017) [applied]