fix distdir handling if prefix is not