In the first patch I fixed the regular expression but neglected to adjust the index of the path match group accordingly. In this version I just drop the groups that we don't care about to simplify maintenance in case this command's output changes again in the future.