added an option to indicate whether to exclude files starting with underscores (default) or not