Writing to local tmp folder to avoid any permissions errors.  Soon we will make this configurable