Changed the subprocess style to not use a real shell, and to pipe standard input manually. This is required to work on Android.