1.Fix some bugs which causes os type detect to fail.
2.Add some abbreviations.