remove trailing /ubuntu