Add missing semicolons in environments