windows agent: cache_age parameter also applies when async/sync caching is disabled
windows agent: some fixes with possible script buffer overflows