Ignore special files in config.d

Ignore files starting with '.' or ending with '~'. These files are
usually backup or other irrelevant files.