bug fix to upstart script