Fix group issue for the systems where user and group are not necessarily the same