superbuild: resolve the top-level dir properly

If the superbuild is built through a symlink, the '..' resolution may be
wrong. Instead, get the fully-qualified path to the superbuild then
compute the parent from that.
Merge pull request #43 from mathstuf/superbuild-symlink

superbuild: resolve the top-level dir properly