Reorder settings so path is constructed properly.