-- search/remove '\r' from string buffers read from scripts:
used a fast way: change each '\r' to a space, since it should
work for scripts and the buffer is only needed for a short while.
-- added call to clear error indicator before running a script.
A previous script may set it even on succesful returns.