fix version check to create spec file