getWorkspacePath: Use iteration and simplify.