Add platform independent end of line when splitting file into array