check for the filename in the list not the complete path+filename