v1.4.1
Patch by Christoph Schug applied to replace two (cut) systemcalls with one (sed) when getting DEVICESTRING.
Added quotes in various places for consistency
Don't set state to unknown if state is already critical (for code added in 1.4)
unset $ERR before doing anything to avoid problems if the variable is already set