sp-23 fix work directory resolving logic
Minor fix.