diff --git a/bedpost b/bedpost
index af8fde384bc2bc1d36e221d4a9f9699ef4083619..6b0292060b0e45b8ec3f34a85d5a1bb29fff1ea5 100755
--- a/bedpost
+++ b/bedpost
@@ -5,7 +5,15 @@
 #   SHCOPYRIGHT
 
 if [ "x$SGE_ROOT" = "x" ] ; then
-  . /usr/local/share/sge-6.0/default/common/settings.sh
+  if [ -f /usr/local/share/sge-6.0/default/common/settings.sh ] ; then
+    . /usr/local/share/sge-6.0/default/common/settings.sh
+  else if [ -f /usr/local/sge-6/default/common/settings.sh ] ; then
+      . /usr/local/sge-6/default/common/settings.sh
+    else
+      echo "bedpost: Couldn\'t locate SGE_ROOT\!"
+      exit 255
+    fi
+  fi
 fi
 
 Usage() {
diff --git a/bedpostX b/bedpostX
index 5b138c41299f334644a85c88fda3148ae4b9f47c..24cbc514fa11f14abbc6e25ca469aaf535a79520 100755
--- a/bedpostX
+++ b/bedpostX
@@ -5,12 +5,20 @@
 #   SHCOPYRIGHT
 
 if [ "x$SGE_ROOT" = "x" ] ; then
-  . /usr/local/share/sge-6.0/default/common/settings.sh
+  if [ -f /usr/local/share/sge-6.0/default/common/settings.sh ] ; then
+    . /usr/local/share/sge-6.0/default/common/settings.sh
+  else if [ -f /usr/local/sge-6/default/common/settings.sh ] ; then
+      . /usr/local/sge-6/default/common/settings.sh
+    else
+      echo "bedpost: Couldn\'t locate SGE_ROOT\!"
+      exit 255
+    fi
+  fi
 fi
 
 Usage() {
     echo ""
-    echo "Usage: bedpost <subject directory> "
+    echo "Usage: bedpostX <subject directory> "
     echo ""
     echo "expects to find bvals and bvecs in subject directory"
     echo "expects to find data nodif_brain_mask nodif in subject directory"
diff --git a/bedpostX_single_slice.sh b/bedpostX_single_slice.sh
index 8080f60975364128c64fc7f43b5766f5ae1f27a1..6a87b2682ce730538e660d30e6581df2b1ef7c34 100755
--- a/bedpostX_single_slice.sh
+++ b/bedpostX_single_slice.sh
@@ -7,7 +7,6 @@ slicezp=`${FSLDIR}/bin/zeropad $slice 4`
 #$ -cwd -q long.q
 #$ -S /bin/sh
 #$ -V -N bedpostX
-#$ -l arch=tru64
 #$ -m a
 
 ${FSLDIR}/bin/xfibres\
diff --git a/bedpost_single_slice.sh b/bedpost_single_slice.sh
index 310575dcc008fdbfa8db487ca52464e3589e5a30..a9d27a1e1157fb7106fdea09bb4a728f5301e424 100755
--- a/bedpost_single_slice.sh
+++ b/bedpost_single_slice.sh
@@ -7,7 +7,6 @@ slicezp=`${FSLDIR}/bin/zeropad $slice 4`
 #$ -cwd -q long.q
 #$ -S /bin/sh
 #$ -V -N bedpost
-#$ -l arch=tru64
 #$ -m a
 
 ${FSLDIR}/bin/diff_pvm\