Refactored how "work dirs" are calculated.

to make the logic not littered across (removed
one such case) but also to make different Mojos
be able to override those.