support `cwd` property, thanks to @mrm007 :+1: