Version check extended to support phantomjs v2.x