better handling of build and dist gitignores