Updated: Massive refactoring of makestaticcache_cli into new tested working bcgeneratestaticcache solution