Fix data rw and ro dirs env variables reading for cmake.