patch applied (cabal): Fix register --gen-script