improved Upstart script