Changed chroot wrapper code in spawn() to write the wrapper the python way instead of the bash way to avoid quote conflicts.
Changed paths: