Updated code to Node v0.10.18. Fixed an error with command case.