Revert "add git-new-workdir" because this causes compile error

This reverts commit 84e4521140a9a289ad686efa798b7648fcd0537f.
bugfix