Rakefile: fix extensions duplication on windows