Improve the tag read loop

Apply changes on git ignore, improve the tag read loop.