[TASK] Improve phantomjs daemon detection