fixed parsing bugs related to process substitution, it did not parse well to text script before, more tests, increased test code coverage