Fixed bug with invalid version trimming for OS X Haskell support.