Generate timestamp subdirs and optionaly use temp working directory