Sorry, I didn't mean to invoke project_cd, I meant to look at its source to find the line that gets the project working directory.
The code reads the value from the "WorkingDir" field in the .VPJ file. I wonder why the result doesn't match what the code appears to do.
Anyway, glad you got a solution.