Fix the test case so that it doesn't fail if --with-libdir is provided as a compile option.