Backport a fix to get ZFS relative path