Make the ruby file completely self contained