added retrieving name from file name when metafile is missing, or programname is empty in meta file