fix prompt issue when curdir contains spaces