(bug) Turn version_regexps into an instance variable

An earlier commit is using version_regexps outside of
the original method scope. This turns version_regexps
into a rake instance variable.