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

Closes #1227
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>