adding a few more checks
reporting error when phantomjs is not installed, fixes #7