Fixed commands parsing - don't treat pipe (|) character as a new line separator

This is to keep pipe characters in the commands. Otherwise they are getting replaced with \n due to invalid regex pattern: [\r|\n], which I guess supposed to be (\r|\n)