Improve curl checking.
Add gitignore.