Take into account that Ports can be a list in the SE definition
Allow grid environment script with arguments
After debugging
Merge pull request #1571 from atsareg/fix-v6r7

[v6r7] Several fixes