fixed support for fedora

Fixed support for fedora