Fix "expr: syntax error"

In some cases get_boot_device() returns an empty string so we should make
sure to pass the correct number of arguments to expr.