handle OSes (such as Unicos) which use a different value for S_IFLNK