Update gitignore by adding a slash after a directory, because this ensures that the patterns only matches directories.