Fixes #3

Resolves issue #3 with @bstrysko's change. Tested successfully on Node v0.10.16 on Raspbian Wheezy.