Only insert semicolon at EOL