Fix indexing in viewer selector
Replace sed command with configure_file in Cmake