Use input file names to set __moduleName for node compiles
Fixes #813