fix extra slash on basepath