Fix update-GRAN script so that it can be called in cron wrapper