Hardening the generation of pathconfig.php.

Prevent PHP injection possibility, by using `var_export()` to generate the pathconfig.php.