Use datadir directory instead of .

The data directory is meant to be used for a plugin to store files.