Fix rules file to work as described on the wiki.