matches.1 doesn't work on PowerShell 2.0. But it works in PowerShell 3.0 and PowerShell -v 2.
We need to support original PowerShell 2.0. So better to change to matches[1] here and in line 263 as well.