diff --git a/fsl/utils/imcp.py b/fsl/utils/imcp.py
index 047f1f2f2ca65dad5d0b2c31a0b706da14ee4577..8950e074d00cb95e7d02c6b2ec778bdb1b2135e6 100644
--- a/fsl/utils/imcp.py
+++ b/fsl/utils/imcp.py
@@ -137,6 +137,7 @@ def imcp(src,
 
         img = nib.load(src)
         nib.save(img, dest)
+        img = None
 
         if move:
             # if input is an image pair, we
diff --git a/fsl/utils/path.py b/fsl/utils/path.py
index fc8efeadb4426a245a72ffe60a63cb6264784d8d..4190865a820dab8b52b8119ed305c0d17006a721 100644
--- a/fsl/utils/path.py
+++ b/fsl/utils/path.py
@@ -65,7 +65,7 @@ def shallowest(path, suffixes):
     path = path.strip()
 
     # We've reached the root of the file system
-    if path == op.sep or path == '':
+    if path == op.sep or path == '' or op.splitdrive(path)[1] == '':
         return None
 
     path   = path.rstrip(op.sep)
diff --git a/fsl/utils/run.py b/fsl/utils/run.py
index 4c45f6aa8de215331903f84d5ec372d6b51d8283..a5b9df816f9605edf62b8daa62d082142a898057 100644
--- a/fsl/utils/run.py
+++ b/fsl/utils/run.py
@@ -6,6 +6,9 @@
 #
 """This module provides some functions for running shell commands.
 
+.. note:: The functions in this module are only known to work in Unix-like
+          environments.
+
 .. autosummary::
    :nosignatures:
 
diff --git a/fsl/wrappers/wrapperutils.py b/fsl/wrappers/wrapperutils.py
index 2ef47df62963497f0774e0562dd815880151d040..21829c13d1ae3035276ccbc69c899b47c31f5a1d 100644
--- a/fsl/wrappers/wrapperutils.py
+++ b/fsl/wrappers/wrapperutils.py
@@ -91,7 +91,6 @@ import              os
 import              re
 import              sys
 import              glob
-import              shutil
 import              random
 import              string
 import              fnmatch
@@ -864,6 +863,7 @@ class _FileOrThing(object):
                 fval = self.__load(fullpath)
                 if fval is not None:
                     prefixed = self.__removeExt(prefixed)
+                    prefPat  = prefPat.replace('\\', '\\\\')
                     prefixed = re.sub('^' + prefPat, prefName, prefixed)
                     result[prefixed] = fval
                     break