- escape the staging_path in a regexp when replacing the pear_dir paths