Fix version variable and print patch to stdout