test: Allow phantomjs to be in $PATH

For example phantomjs may be installed in your homedir. It should
still be in the path, but not necessarily in /usr/bin