Handle systems without telldir()

To discover whether a glob points to a dirhandle on
those systems, some B trickery is required.
Merge branch 'pr/1'
readyn for 2.13-TRIAL