changed fedora detection method