autoboot: Adjust the implementation in autoboot_command()