Revert "Use $installedVersion instead of $currentVersion"

This reverts commit aef1e5112f0f4a64f814d78fccd738a842bd5730.