Fix version parsing

This fixes the version number parsing to handle underscores properly.

version.pm is too buggy to use for this.