[OE-2540] added check for scans_directory parameter