fix #46, #88, #103: Correct version parsing with build number and a trash