Fix ENC script cache fetching when foreman is down