26278 Better path validation for configurations

Now validates the configuration name specified during project setup using the same logic as the project name.