Fixed CMake error when DATADIR equal "" (is DEFINED, but empty).

In my previous PR I introduced one bug, when using CMake and leaving DATADIR var empty. This should be fixed now.