Fix path selector for multiple jails

Ticket:	#2433
Merge:	releng/9.1.0
(cherry picked from commit b7436981b315cc831213922879f5638afadee5b0)