Fix retrieval of compiler name in case of extra dashes