Add device_by_name helper in Rakefile.
Detab a few lines.