Update rollingFile.js

taking fixes from clustertech fork