Better version detection

Prevent detection failing if there are errors in configuration file and warn
people only if they do have a record of previous installation.