Added try,catch to readFileSync

While readFile is safe, JSON parser in readFileSync can throw exception. Try, catch should solve this issue.