fix upstart envs