auto-shell-command (vendorized)