Those directories never get created.
Start using absolute gitignore paths.
Ignore the .bundle directory used by bundler.
Use absolute paths in .gitignore/.hgignore.