Fix symlink support

Fixes creating symlinks that point to file system entries relative to the symlink