update basepath.php with global variable