fixes pathspec error for commit and tag for windows