Changes CMakeLists.txt to no longer rely on case sensitivity when determining build type