Exit with a helpful message if the result directory path contains spaces.

Instead of failing later when creating directories, workaround for #411.