gitignore: replace library catch-all pattern by more specific patterns