Made FileSelector class correctly change rootDir on button push