[misc] Fixed git dirty repository detection
[drawgantt-svg] fix missing call to svg_drain...