[release,cmake] Support testing of dune-modules in symlinked directories.

Previously running make test if there was a symlink int the path to the module.
This caused make test to fail. This patch fixes this by extracting the
path without symlinks.