fix bugs: use $(ifgitdir) instead + to let it run evertime