Consistently use unix newlines, remove trailing whitespace