Bugfix for `WORKPATH`.

Change from workpath to WORKPATH. 
If not, no value will be passed for the working path in some cases.
And then the building process will be terminated.