use fs.readFileSync instead of require()

require() has the wrong semantics for path resolution