Patch for version finding

The "config" method does not work anymore, so I changed it to grab the
version from an exception.