Modified realias to handle multiple matches

- The Bash realias function will now check for multiple potential
  matches when attempting to determine what alias was used to produce a
  command string and selects the alias that generates the shortest
  string.