Added missing require('fs')
Merge branch 'fix_fs'