fix package versioning detection