Add support for $(getent protocols)

Another copy'n'paste PR