http://stackoverflow.com/questions/4224606/how-to-check-whether-a-script-is-running-under-node-js