fix hidden file detection on windows