Fix for updater adding garbage to the end of its own file