fix relative directory access in cron