update stage code so that when comparing the BaseName of a stage against the recorded, lowercase version of a Stage name the BaseName is also lowercased.