Create tmp directory if it does not exist