fix Rserve() to detect in-library binaries properly