Remove overly generic elements from gitignore

In some types of projects they should not be ignored, so I should
only add them when necessary.