ARM cpu detect: Only drop last character if it's actually a newline