fix for taskId hostnames

- optionally allow an omitted common suffix