fix platform check

do not use global constant in gemspec
improve abbreviation support
1.0.1