fix log append in init script