Fix typo and fix json detection in executable