BF: Fix AttributeError in port deduction

A typo in attribute name raised an AttributeError on some platforms.

Found by pylint.
DOC: Fix typo is source comment