Update TargetPanel.directory.mac to latest syntax