fixed bug with spaces in dir names.