Fix shellcheck warnings in initstatus