canonicalize the version name for --like option