QPIDIT-86: Fixed problem with get-proj-ver script
diff --git a/get-proj-ver b/get-proj-ver
index 4c46213..4252081 100755
--- a/get-proj-ver
+++ b/get-proj-ver
@@ -4,7 +4,7 @@
 use warnings;
 use XML::XPath;
 
-my $root = XML::XPath->new(filename => 'pom.xml');
+my $root = XML::XPath->new(filename => $ARGV[0]);
 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 5ab0fe3..2427ced 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 ${CMAKE_SOURCE_DIR}/get-proj-ver
+execute_process(COMMAND ${CMAKE_SOURCE_DIR}/get-proj-ver ${CMAKE_SOURCE_DIR}/pom.xml
                 OUTPUT_VARIABLE QPID_JMS_SHIM_VERSION
                 OUTPUT_STRIP_TRAILING_WHITESPACE)
 message(STATUS "Qpid JMS shim version: ${QPID_JMS_SHIM_VERSION}")