diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index b0fb6e3..d12258d 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -394,7 +394,7 @@ EOF
raise "uname failed" unless $?.success?
if uname == "Linux"
if File.exist?("/etc/fedora-release")
- distrib = `cat /etc/fedora-release | cut -d \ -f 1`
+ distrib = `cat /etc/fedora-release | cut -d ' ' -f 1`.strip
else
distrib = `uname -a | grep -io -e Debian -e gentoo -e Ubuntu | sed -e 's|gentoo|Gentoo|'`.strip
end