Complete implementation of the version check system, fixes #1