Changed $newDirName to $replacement in main class