Fix /var/lib/gems/ permissions after installing new gems

A workaround for a bug related to CFEngine installing packages having
umask set to 077 (https://cfengine.com/dev/issues/1169). We have to make
sure that permissions are fixed every time we install new gems.