Refactor gitignore to support comments, \r\n and inclusions, also convert indent to tabs