Fix OSD device auto-discovery

Missing variable, conditionnal didn't work.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
Merge pull request #157 from leseb/fix-osd-autodiscovery

Fix OSD device auto-discovery