trim trailing zeroes on version number