fix type in readFileSync() function call