Add suffix 'd' or 'ed' depending on last letter

Spelling changes in the test suite exposed this needed change, which fixes the tests. If the mode (install or upgrade) ends with an 'e', then only append a 'd'. If not, append 'ed' to the end of mode:
- The extension foo has been installed.
- The extension foo has been upgraded. (not upgradeed)