We don't want the basename, we want the dirname