Fix to check symbolic links