Added proper support for fedora.