Create parent directories if needed in GetDataDir

One-line change. Fixes #2752.