Temporary file and directory creator for node.js