Fix not working issue when the path contains space