fix reltool version number discovery

...to work not just for rel/dws, but also for
dev/* releases.