Fixed errors when trying to run on RedHat and CentOS distros