Do only save the pathconfig.php when the path has changed.