Make cwd for spawn command relative to document root.