Port *nix version update/ip cmd fixes

Port over fixes to update & ip commands from *nix version, as well as
removing the quotes around the 2 in the version check (which was
required to make the script function for me).