Change cut command to only remove the prefix in case hostname has multiple dashes.