Deal with $VERSION inside BEGIN {}

This is a branch from a while ago but it seems valid to want parse_version to be able to handle it.