fixed a problem for local directory name with spaces