I may have missed it, but what is your question exactly? Many of the occurences that you show are in if (..) .. else .. constructs, and the workspace path is not supposed to be used then, as those if statements check for which space they are actually in.