config_hostname: fix syntax error and wrong eend call