Rework getting the version to avoid implicit relative import