fix issue with packageVersions being undefined

set default for contextual config option

always use this.versions

maintain stable reference to loader.versions