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.
Merge pull request #401 from nicklewis/correctly-munge-rc-versions

Correctly determine package versions for RCs in acceptance tests