If someone provides a --prefix that ends with slash, strip the slash.