Improve PhantomJS version checking

Naive implementation of raw string comparison fails on version
starting from '1.10.0'. The new implementation converts version parts
to integers and checks them in turn starting from major part.
Merge pull request #318 from hron/improve-phantomjs-version-checking

Improve PhantomJS version checking