Create MongoDB data directory if it does not exist.