Fix handling of pem parse_file output