Add option to set the root path

Also included is an easy way to reset said option, and include it in debug logs