Changed scanning of .csproj and .nuspec files

- Comparing name of containing directory to file name and using first
  instead of single to get the file info