Hack part 2: only run patches if JENKINS_HOME is set