Return number of errors on callAnt() method.

Now we return the number of errors after calling ant and if there are more than
zero we skip the installation step entirely. Waiting for all devices to finish
intallation even after compilation failed is time comsuming and innecessary.