fix hostname replacement in supervisor task