Replace the global phantomjs instead of the NPM one.

npm install phantomjs doesn't download and install a binary if there's already
a system-wide one, which on Travis there is, so we need to replace the
system-wide one instead.