Fixed document index script compatibility with git bash