Ignore files after clone & Ensure new line while writing in the ignore file