Set options.device after device is calculated. Add only_if statement to mkfs block.