ProcessManager: endpattern also matches itself
Data.String.substitute_last: new function. Thanks cohama for regexp in lingr vim room!
ProcessManager: bugfix: replace only the last prompt
ProcessManager: bugfix: too many arguments for substitute_last