Check to see if the directory tmp exists. If it doesn't, create it. If t...

...here is no tmp directory trying to put the app into maintenance mode will throw an error.