correcting root directory path