Fixes issue with gist saving if multiple dirty files. Closes #42