Fixed version parsing to handle "9.40"