FileRepo: cleanup a raw version before constructing a clean Version

To also accept (for example) Maven versions like 4.12-SNAPSHOT

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>