Fixed generate.rake script