Fix spelling errors in locate function

You must have not tested this at all, it doesn't work at all with these errors. I also fixed the if rednet.open() because that doesn't return a boolean value.