added fedora example ; fixed create bug with different distros