Fix deducing invocation command