modified check for yum/apt-get in worker installer