Run shell commands in multiple directories.