Add git ignore file to ignore build directories.