turn modification section into a script that works with Fedora 20 or 21