Fix bug: Proper check for public directory symlink