Fix rpm based distros from attempting to use apt-get. Caused by malformed if statement