added support for fedora 18 and fixed naming issue in centos 6.3