Prepare datadir by mkdir_p