a trailing semicolon only needs to be added if the source file does not have one already
Merge pull request #828 from joscha/only-add-trailing-semicolon-when-needed

Only add trailing semicolon if source file does not have one already