Try to create the temp directory if it does not exist