Failed to render page: conflicting chdir during another chdir block