Fix using sudo, cron for repo cache