Removes buggy extra ',' at end of file