Fixed a series of extglob parsing oddities and edge cases