two hotfixes

1) add shebang line to the cron template
2) add return to tasks update API endpoint.