Fix issue that script not work with filenames have spaces