diff --git a/bin/foamPackThirdPartyBin b/bin/foamPackThirdPartyBin
index 484c0c1e4b9251b718ac04bfe93e8e84d21c1536..a229ebea9cbd2c3c0d7294505b3064b94818a346 100755
--- a/bin/foamPackThirdPartyBin
+++ b/bin/foamPackThirdPartyBin
@@ -43,6 +43,10 @@ archOptions=$1
 arch=${archOptions%%G*}
 arch3264=$(echo "$arch" | sed 's@64@-64@')
 
+echo "archOptions=$archOptions"
+echo "arch=$arch"
+echo "arch3264=$arch3264"
+
 timeStamp=$(date +%Y-%m-%d)
 packDir=ThirdParty
 packFile=${packDir}.${archOptions}_${timeStamp}.gtgz
@@ -60,7 +64,7 @@ then
 fi
 
 # get list of directories
-dirList=`find $packDir -type d -name $arch -o -type d -name $archOptions -o -type l -name $arch3264`
+dirList=`find $packDir -type d -name $arch -o -type d -name $archOptions'*' -o -type l -name $arch3264`
 echo
 echo "Packing $archOptions port of $packDir into $packFile"
 echo