add spawn_command_sync in utils.c