Change: Fix default mailfrom

Cherry pick from master

Ref: https://dev.cfengine.com/issues/6567

$(sys.host) is ambiguous and the old usage may produce a mailfrom of 
root@foo.example.org.example.org for host "foo" in domain "example.org".