chore(build): make version-info.js run on windows

Replaced grep with match
Windows operating systems do not have grep by default

Closes #6912.