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