"==" is a bash specific operator (a "bashism" as they are known). When you specifiy /bin/sh in a cron it will use a different shell and == won't work.
Either change your #! line to use bash instead of sh, or use [ $? = 0 ] or [ $? -eq 0 ] for the tests.