The above answer was not the perfect one as it doesn't work when the project is created under nested folders.
This is solved by giving a guid as solution folder name in the multiproject template and then looping through the projects in the solution to find the guid and rename the solution folder with the project name.
Posted the code here