fix folder walking function to actually recurse and to check all files