Use the same trick the ldap handler uses: Have two vars $vexec and
$vdir, which are empty when running on the host and filled when running
on a vserver. By prepending these vars at the right places, all of the
explicit "if [ $use_vserver = yes ]" could be removed.