Refactoring of core/transmission
Escape shell metacharacters and affect return status of the command