Fix almonk/SketchGit#6

Hi,

Fixed almonk/SketchGit#6 this pullrequest, and refactor using shellscripts.

Regards,