Buildscript: Inverted patching logic