This means that if the directory has not spaces (like in "c:\data"), it is considered as directory. However if it has spaces (like in "C:\Documents and Settings", it is considered only as file name.
OK, I guess that the test for space is not really needed (I guess I was too prudent at the time of writing it), removing seems to fix the problem (comited to svn).