fix(core): use cwd
for locating workspace root
#3998
Merged
cwd
for locating workspace root
#3998