Various fixes

writeln "Not executing command because open_viewer disabled"