Resolve the bug that cmd with full path not exist