Fix use of wrong filename for fs.statSync