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.