Fix uwsgi upstart script bugs