Fix phantomjs version check

Patch version is checked for all minor versions >= 8, therefore
when checking for 1.8.x patch version minor needs to be checked
against 8 again.

Fixes issue #394