build: cleanup jni m4

- Don't error if not found
- Don't use AC_CHECK_FILE which is disabled on cross
- Check for darwin path