Make spawn function spawn processes from the current user's home directory.

This makes the spawn function change to '$HOME' before spawning a
process and back to the original directory after spawning the process.