check package version before build
added version check to build process