Create temporary directory if it does not exist