Only save the `pathconfig.php` file when the path has changed