fix registration for node 0.10.0. Refs gh-39