Add CentOS 7 support

This applies some fixes to get this to work on CentOS 7.
single quotes everywhere please