fix newlines in platform/platform_family

follows the pattern used by all the other plugins to strip off
the newlines (not sure why we don't just use .chomp, but i'm being
consistent with all the rest of the code)