Add getcwd.
Make posix_spawnp return -1 on error, rather than bogus pid.