Fix logrotate and upstart to be more robust