Support __dir__ on slash.g and related context proxies