add is_link() feature to avoid softlink error in Linux