Fix shutdown script logging in Ubuntu