Added result cache to get_global_data_path(), script_exec() exception now shows name of failed script, improved global data path detection and initialization. Added cli_is_root(), file_ensure_file()