Two bugfixes: algo flaw in resize_file_cached_script_vec() and handling of
realpathing of the cache_file name (the dirname  part is realpathed).