added path and util dependencies to enable use with phantomjs