fixed order of variables initialization and syntax error in celerybeat init.d script