Add quotes around the file name to avoid issues with spaces.

Closes #3719.
diff --git a/Lib/platform.py b/Lib/platform.py
index 73b6fdb..cc0431b 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -969,7 +969,7 @@
         return default
     target = _follow_symlinks(target)
     try:
-        f = os.popen('file %s 2> /dev/null' % target)
+        f = os.popen('file "%s" 2> /dev/null' % target)
     except (AttributeError,os.error):
         return default
     output = string.strip(f.read())