updated patchHostgroup with -s option