Cleaner implementation for install gems