fix for directories with spaces