Improve localemod.py for Ubuntu.
Touch file before append.
Merge pull request #14740 from dudz94/develop

Improve localemod.py for Ubuntu.