allow gem installer to work with use_sudo options - fixes #175