fix func.php (root dir when cli)