Update file.js

applying fix from https://github.com/flatiron/winston/issues/222#issuecomment-15319734