Update version to 0.4.0
Save last version to global.ini on exit