fix issue when there is a space in the path