Do not require WRKDIR to be set.
(cherry picked from commit b3bfc9b454bee6d84469f9688a1d5d52148488bc)