checking if file is symlink