.gitignore updates.
Create build and var directories if they don't exist.