Use $data_dir from configuration

The $data_dir configuration variable isn't used whereas it exists in settings.php.
It is necessary, for example, to install the webdav server on heroku, which requires to put the data in the tmp directory.

This makes usage of the $data_dir configuration variable.

---

Note to anyone discovering this because I mentioned heroku :)
You shouldn't use this project on heroku, unless you want the webdav server for development and tests purposes (that's my case).
The tmp directory in heroku is the only one where we can write to. But it's not persisted accross deployments. So you'd lose your data regularly. Do not rely on it.