use global phantomjs if defined