Sets subdirectory *_DIR variables.

- Also adds missing Sophus package to disable exports loop.