[BUGFIX] fix problem with hidden files and dots in pathes

this patch should fix the problems reported in #132