remove trailing commas at the end of hash

this restores compatibility with ruby 1.8