minor update to code generation
If the platform hostname doesn't evaluate to True, i.e. is an empty string, than don't include it in the output name