Ignore hidden files based on `show_hidden_files` option.

Note: it doesn't ignore directories starting with dot, a more complex test is needed for that.