Remove unnecessary lib folder and update phantomjs version