Fixed readFileSync in links.js to not be broken