Move package name and package version check

The checks would fire the “versionsCallback” which would also get (re)fired in the “end” event handler.