Replace basestring with six.string_types in ext/invoke.py

`basestring` doesn't exist in Python 3, so we should use `six.string_types` instead.