Add paths expansion to outgoing, incoming commands