fixed not checking for HIDDEN files in read only branches
fixed hidden files in readdir