bugs with regex and hiding files with dot in the beginning