fixed wget check

The check was previously saying failed even when wget was installed.
Changed how the check was being performed.