Bundle update and remove trailing empty lines