Better Android install script - doesn't push to device if there's a compilation error