Fixed output bug on android.

The old code worked for OpenSUSE linux, but not for android.