Added directory creation functionality to Configuration.cs.