Fixes a nil exception due to an empty string.
Fixes a shell error caused when 'android' was not in the user's PATH
Adds some logging.