Fixed issue with creating scaffold in user-defined target directory.

The context root is obtained from the project's name. This is an assumption, and needs improvement.