added automatic git-pull at script exit