More improvements to hidden files handling