dirname fix