Make ConsoleExec version and platform-independent