you need to escape quotes in the path to be safe (as you don't have any validation of the path before dumping). Otherwise, it could create some fatal error in the dumped code. I suggest using ``var_export`` to build the dumped string instead of just adding quotes around it