Fixed bug that new_workspace crash when path not exist.