Execute a command in multiple directories