Fix wrong variable name and remove RPMDIR symlink afer repo generation