Modify the checking method of chef installed