Make packaging script a bit more flexible so it can be used for Fedora 19 and 20

Still a bit to do before it can be used by waves people on windows.