you could avoid the substitutions here using ``with pushd(path):``