Fix syntax errors for ruby 1.8.7

Older ruby dislikes trailing commas