As a side note to this patch: it's been sitting in my queue for the better part of a year while I internally debated the untidiness of not being allowed to chdir. It's an unfortunate result of implementing this behaviour, but it's behaviour that other implementations (namely GNU, but not Solaris) support.
Let me know any feedback or oversights on my part, David
