improve cron to properly handle data_dir