fs: Quietly ignore non-dir targets in get_files_in_dir() (BFS only)

The non-BFS implementation already ignored this case without making
noise in stderr, and this function is used by delete_directory(), which
also accepts both regular files and directories. The add-ons management
code has always relied on this behavior.