Update lastmode to force re-bulding