Detect update major version correctly
Output messages for debugging