when comparing device and local commands, make em lowercase