Get OS-specific datadir and separate datadir from default document dir.