gdbserver_tests: Improve compatibility of library directory name