removes trailing comma from deps