Merge pull request #202 from kanoi/jsonfix save config bugfix: remove writing an extra ',' when no gpus