added phantomjs as dependency and improved casperjs path resolution