Watchdog script not working after upgrading to 6.7

I upgraded from 5.25 to 6.7 on all my routers. All is well except I’m getting an error in my log stating "script error: no such item (4)

The script is in reference to one I found on this forum that pings a device once a min and if 5 are missed it reboots. Do I need to change something in this script for version 6 software?

:if ([/ping 10.x.x.x interval=5 count=60] =0) do={
log info “Lost contact with neighbor, rebooting…” ; /system reboot
}

When I try the script, I get a different error, but the script seems to work:

script,error script error: action timed out - try again, if error continues contact MikroTik support and send a supout file (13) 
script,info Lost contact with neighbor, rebooting...

If I run the script in the terminal, no errors.

If I lower the count (I tried 10), the error disappears.

Searching through the forums, it looks like other people started having similar script errors starting in v6.
http://www.google.com/search?q=+site:forum.mikrotik.com+script+error+no+such+item+v6