create gumd group on installation and use it to set effective group id
corrected indentation
defined drop/gain privileges util functions and used it when needed