check_apt now correctly exits when apt-get return != 0

Hi,
This commit fixes an issue with check_apt where check_apt doesn't exit
with the appropriate return code when apt-get returned a non-zero value.

It was already discussed in Pull Request #45 and should be fine now.
So if there aren't any objections left, please apply it, thanks!

br,
Richard