Change bash lines in bin/ to ruby