permission fix concerning writing the update file to the external dir