Fix issue #218: support XDG_DATA_HOME for <dir> nodes

As requested.