fix a commonRootPath bug in worker; affected build command