fix expansions and extglobs - closes #1