fixing handling of error when trying to detect android tools