Fixed plugins build script on Linux.

Minor fix on ModelWidget when adding constraints to relationship.