Improve localemod.py for Ubuntu.

Touch file before append.