Use predefined TZ variable when it is available

Changed function 'set_timezone' to use existing value of the 'TZ'
environment variable when it is available. And explicitly set it,
if it is not already set by an administrator.