changes to rake export to conform with multiple ruby versions