Fix handling of non fully numeric version numbers (-SNAPSHOT, -RC.1, ...)