Added protection in apt for non-Debian hosts