Remove call to getcwd for Android

In some cases, getcwd returns null which leads to a segmentation fault.
Moreover, the call isn't even needed because the Android host sets the working directory with a JNI call afterwards.
Merge pull request #903 from romainmoreau/fix-getcwd-android

Remove call to getcwd for Android