Fix package version check