adds cache for isPtySupported()