Allow symlinks to be placed outside the base directory
Critical bugfix.

Actually retrieve base directory properly