Remove trailing comma in define array