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

this patch should fix the problems reported in #132 
yes, my mistake, copy & paste after a long day ;) I will correct it today in the evening.