/**
  * improves path appearance
  */
 static function processPath($path, $curPath)
 {
     $curPath = str_replace("\\", "/", $curPath);
     if (!(strrpos($curPath, "/") === strlen($curPath) - 1)) {
         $curPath = $curPath . "/";
     }
     if ($path == null) {
         return null;
     }
     $path = PccConfig::inlineEnvVariables($path);
     $path = str_replace("\\", "/", $path);
     if (strpos($path, "./") === 0) {
         $path = $curPath . substr($path, 2);
     }
     if (!(strrpos($path, "/") === strlen($path) - 1)) {
         $path = $path . "/";
     }
     return $path;
 }