Fix JNI shared lib creating script