fix problem with getoutput, CAF-304
Merge pull request #4040 from spigad/failedfiles

fix problem with getoutput, CAF-304