FileRepo: cleanup a raw version before construction a clean Version

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

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