Extracts a base path from a node-glob instance