Dirname fix.