use findfile as fallback to finddir for repos that use a file as root marker instead of a dir