Handle symbolic links properly