Fixed errors in phantomjs download.