Interactive dirname.