clean up keep_symlinks for file.recurse

fix #10809
Clean up some pep8