Improve PhantomJS version check so PhantomJS 2 can be used as well.

I tried to use PhantomJS 2 (still in development) with mocha-phantomjs and stumbled on this version checking which excluded me from trying it. It looks like everything works, except that some tests keep failing on my machine (even without these modifications).