Move path overwriting to config, change validation for extensions.