Use WRKDIR environment variable

(cherry picked from commit 2b4f601dd6f1ffe87ce7412f5c6a9fdd7703e300)

Conflicts:
	_regenerate_json.sh
Need core to invoke cf-promises

(cherry picked from commit b5ae7330a4d2985115c926cf639d131cc28775c2)