gitconfig: Update githelpers credentials function with support for MSYS2