fix inverted result of checking version existence (refs #7)