fix conditions
only install gems if necessary