added test unlinking directory

#3157
rmdir needs to be used on windows to remove symbolic links to directories
Merge remote-tracking branch 'hakre/patch-1'