Fix cmd.js error in node 0.10

This pull request fixes issue #10

* Added failing cmd.js test for node 0.10
* Updated travis testing to include node 0.10
* Fixed the failing cmd.js test

The new test passes in node 0.8, 0.9 and 0.10.

Please let me know if anything else needs to be done to get this merged.