fix the vm generator script to work on ruby 1.8.7