Bugfix, node module dependancy name was incorrect.
Refactored error checking slightly.