Detect if it is safe to run apt, to avoid issues with providers that doesn't look VPS boot processing. Re: https://stackoverflow.com/questions/18008508/bash-how-to-check-if-packages-can-be-installed-if-apt-get-dpkg-is-running