26278 Better path validation for configurations

Now validates the configuration name specified during project setup using the same logic as the project name.
you can split on os.sep and then you'd only need one if catch?