Add support for :chdir in exec and spawn