Enhanced nexec to handle --version option.