update the daily cron to figure out the root directory instead of hardcoding it