Better way to moinitor git status and fixed issue #157