support running main.js from anywhere

declare the cwd of main.js to be its containing directory, regardless of the invocation path. This allows main.js to be run from anywhere, without requiring a `cd` into the node-datasource directory first