fix for dir remake commands.