Put the ec2-user user in the rails group