Fix windows bug when "." is specified with delete/exclude

This is needed to completely fix #778.  #780 added a partial fix,
this is needed so that this fix also works on windows.