Fix a few things with the conversion to Git.

- .bzrignore -> .gitignore
- create cache/env directories at startup if needed