Handle case where LD_LIBRARY_PATH is not set (may happen when using openjdk as libjvm would be in the system path).