deal with eof objects returned by get-string-all
Merge pull request #586 from AmeBel/scm-error

Fixe for issue#584