better handling of version

Signed-off-by: Gregory M. Turner <gmt@be-evil.net>