Fixed port bindings conversion to support legacy port bindings. Fixes #135