Fix logging when phantomjs detected on path