[1.7.x] Fixed a staticfiles test on Windows.

Backport of 9980f67154 from master