Fix locale and time zone setup to be idempotent