Changes exec to sh for proper execution in ruby