fix spawn needing local env such as PATH and HOME, fix passwords not needing raw