Updated read file sync for package json file.