Problem solved. My ant task wasn't finding the installer app due to a typo in its path. Was using platform_tools instead of platform-tools.