added support for fs.readFileSync and added fixes for module requires from nested code