Rename directories
Made variable local that should have been, and missing variable.