Fixing block device check on windows.