added function to generate upstart config for node.js apps