Have a jail ID before running jail commands

Ticket: #7045