Remaps amd dirs.