Strict port identification

The dash used to add a suffix to slave ports is a word delimiter an yields false
positives in the port name comparison. Fix this.

While here fix some other edge cases by using a more strict regular expression.

Fixes #1