added code to create tmp folder in case of absentia