change the way to exc the modgit

seems it is never usable from shell script