Return returncode from shell command.