move the libvirtd group modification to the top of the script due to the exec