Some fixes for node.js host

We use this script for unit test under node.js with latest D.O.H from Dojo 1.10
This changes will fix some problems that we found.