Fixed local install check for phantomjs