Fix for the node-id, getting it from string manuplation, doing string
indexing, this will fail if the hostname variable is chenged