Fix phantomjs https problems