Escape project root path once and only once

Hi,

#251 fixed one bug, but created another. It made sure that the path was escaped when `cd`ing to the directory, but it meant that the path was double-escaped elsewhere. This PR makes sure that the project root path is escaped once and only once every time it is used.

Fixes #256