fix conversion of perlversion (X.Y.Z) into the X.Y interp-name on newer OS X

Syntax mistake (assignment rather than regexp binding) in the regexp
that converted, for example, "5.12.3" into "5.12" in order to use
"/usr/bin/perl5.12".