Ensure that root_path is joined as a directory