Refactor gitignore to ignore build and makefiles directories