Added a way to read the root directory through a dialog instead of hard-coding it