Add autoload cookies to remote and local commands.