Correctly determine package versions for RCs in acceptance tests

This wasn't taking into account the case of RCs, which need to have the
"rc1" bit put into a particular place in the version.