fix bug in upstart script