Account Switcher Command Line fix ups

* "sw [username]" uses case-insensitive match for username
* "sw [u]" partial-matches username
* some refactoring