Reverting to bash and adding guard to ruby