tools: Use $PATH to determine location for phantomjs

Another place we want to use $PATH to determine the location of
phantomjs, in case it's installed to a home directory.