Add filename to err msg when we can't stat of file

Helps customer better troubleshoot the problem.
Fix unit test on windows
Merge branch 'print-stat-err-filename' into develop

* print-stat-err-filename:
  Fix unit test on windows
  Add filename to err msg when we can't stat of file