corrects package management issues and builds mocha-phantomJS