Major shortmap sourcing performance improvement

When generating the shortmap aliases, there were repeated and unnecessary
invocations of grep; the performance improvement gained by using shell
built-ins is substantial.