Handle directories with spaces