Fix delete folder to work with folder with spaces.