Fixed hostname generation. It's now <hostname> [<scriptname>].