Fix some Ido initialization bugs

refs #7625
Add build directories to gitignore