fix root paths so they don't have a trailing /