Fix problem with set-data-directory if directory not contains device.json

Signed-off-by: Pawel Zwanitaj <pawel.zwanitaj@intel.com>