QPIDIT-86: Provided custom script for parsing pom file for project version that works on older distros (xpath was problematic)
diff --git a/get-proj-ver b/get-proj-ver
new file mode 100755
index 0000000..4c46213
--- /dev/null
+++ b/get-proj-ver
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use XML::XPath;
+
+my $root = XML::XPath->new(filename => 'pom.xml');
+for my $node ($root->find('//project/version/text()')->get_nodelist) {
+  print($node->getData, "\n");
+}
\ No newline at end of file
diff --git a/shims/qpid-jms/CMakeLists.txt b/shims/qpid-jms/CMakeLists.txt
index e5839a7..5ab0fe3 100644
--- a/shims/qpid-jms/CMakeLists.txt
+++ b/shims/qpid-jms/CMakeLists.txt
@@ -32,7 +32,7 @@
 set(JMS_INSTALL_ROOT ${CMAKE_INSTALL_PREFIX}/libexec/qpid_interop_test/shims/qpid-jms)
 
 # Find the version string from the pom.xml file (as this in included in the jar file name)
-execute_process(COMMAND xpath -q -e "//project/version/text()" ${CMAKE_SOURCE_DIR}/pom.xml
+execute_process(COMMAND ${CMAKE_SOURCE_DIR}/get-proj-ver
                 OUTPUT_VARIABLE QPID_JMS_SHIM_VERSION
                 OUTPUT_STRIP_TRAILING_WHITESPACE)
 message(STATUS "Qpid JMS shim version: ${QPID_JMS_SHIM_VERSION}")