Fix if statement in ruby recipe