Add maxdepth arg to _filedir_rooted_filtered