Added support for PhantomJS and improved zip file handling