Fix path detection for setup in terms of symlink