Adjust the regexp so that we can handle extra sub versions.
Merge pull request #2731 from brendandburns/bash

Adjust the regexp so that we can handle extra sub versions.