Fix bug in DynamicCapability's dir method