compose: Move 'workdir' to be 'self' member

This avoids passing another parameter around.