Change statSync to lstatSync

Changed statSync to lstatSync to accomodate symlinked files.