Runtime fix for buildmode, type path inputs by the user being incorrect.

Runtime fix for buildmode type path inputs, incorrect paths are now rejected.