ensure JSON file has correct perms on update