Fix autotest.sh for whitespace in paths

I recently tried to run autotest.sh in a path that had a space in it. It didn't go well. This PR quotes everything that could conceivable contain a space.