correct variable mismatch

and also prevent the short plugin alias logic from overwriting any
existing aliases
Merge pull request #5074 from AD7six/3.0-aliased-shells-fix

correct variable mismatch