Fix for #28977

Honors rel set in in Options and fixes target issue.