bunch of bug fixes in this commit.

* Completely rewrote the `check_for_network` function closing issue #8
* Removed `[[` and replaced with `[` instead to move from using bash
  only functions
* `current_install_function` nows removes the pkgrel version from the
  var
* Fixed another bug dealing with running as sudo