Migrate version parsing to the respective package handler. Fixes #7.