Remove shell pop and improve ruby environment