fixed script to run on centos. though it said it worked, it didn't for me. It does now