remove trailing slash from --prefix option