Slightly improve resilience of external command invocations