CreateNugetPackages script fix to prevent dummy directories