Fix for node 0.11 and use-strict

Simple change and a bug in a test that triggers only in node0.11.14 - maybe because fs-functions have been speed up in node0.11.13?