Fixes celery script. Bash is not my fave.